<script>
$(function(){
     $(document).ready(function(){
          // 親フレームに高さを渡す
          sentHeightToParent();
     });
});
//親フレームに高さを渡す
function sentHeightToParent(){
     targetOrigin ='<?php echo $parentUrlDomain;?>';
     message = document.body.clientHeight;
     message = message + 16;
     window.parent.postMessage(message, targetOrigin);
}
</script>